//配置axios
import axios from "axios";

let http = axios.create({
  baseURL: "/api",
  timeout: 5000,
  widthCredentials: true,
});

//全局请求拦截器
axios.interceptors.request.use((config) => {
  return config; //放行
});

//全局响应拦截

axios.interceptors.response.use((config) => {
  return config;
});

export default http;
